package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Friend implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField("friend_id")
    @TableId(type = IdType.AUTO)
    private Long friendId;

    @TableField("user_id1")
    @ApiModelProperty(value = "发起好友请求的用户")
    private Long userId1;

    @TableField("user_id2")
    @ApiModelProperty(value = "接收好友请求的用户")
    private Long userId2;

    @TableField("status")
    @ApiModelProperty(value = "好友关系的状态")
    private String status;

    @TableField("time_stamp")
    @ApiModelProperty(value = "好友请求发送的时间戳")
    private LocalDateTime timeStamp;
}
